package com.chen.ssm.service.impl;

import com.chen.ssm.dao.FlightDao;
import com.chen.ssm.entity.Flight;
import com.chen.ssm.service.FlightService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * com.chen.ssm.service.impl
 * 作者      : 金博超
 * 描述      :
 * 创建日期  : 2020/11/11
 * 修改日期  :
 */

@Service("flightService")
public class IFlightService implements FlightService {


  @Autowired
  private FlightDao flightDao;

  public void update(Flight flight) {

  }

  public void add(Flight flight) {

  }

  public List<Flight> getIndexList(Flight flight) {
    return flightDao.getIndexList(flight);
  }

  public List<Flight> selectListByAircraftId(Integer aircraftId) {
    return flightDao.selectListByAircraftId(aircraftId);
  }

  public int deleteByPrimaryKey(Integer id) {
    return flightDao.deleteByPrimaryKey(id);
  }

  public int insert(Flight record) {
    return flightDao.insert(record);
  }

  public int insertSelective(Flight record) {
    return flightDao.insertSelective(record);
  }

  public Flight selectByPrimaryKey(Integer id) {
    return flightDao.selectByPrimaryKey(id);
  }

  public int updateByPrimaryKeySelective(Flight record) {
    return flightDao.updateByPrimaryKeySelective(record);
  }

  public int updateByPrimaryKey(Flight record) {
    return flightDao.updateByPrimaryKey(record);
  }

  public Integer getCount(Flight flight) {
    return flightDao.getCount(flight);
  }


}
